home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
DISPLAY.SCR
< prev
next >
Wrap
Text File
|
1991-12-29
|
9KB
|
244 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« Display »ye«
/DISP[LAY] [ON|OFF] [ {display parameters}]
/cw
This command displays all following lines which are »+re«NOT»#« not
comments or labels on the screen. »%t«DO»#« continues to display
lines until a command, i.e. starting with a slash ("»ye«/»#«"), is
encountered in the script. Lines starting with a period
("»gr«.»#«") are treated as display control lines. Up to »cy«19 display
control parameters»co« can also be entered on the »%t«/DISPLAY»#«
command line (see »bo«DISPLAY CONTROL PARAMETERS»#« following in
this discussion).
»re«DISPLAY is »+c 14 4«OPTIONAL»#«. Any line not recoginzed as a »cy«command»#« or »cy«label»#«
and »cy«not written to a file»#« will be displayed on the screen.
.pg clr
The »%t«Display»#« command has special meaning when used in »ma«Interactive
mode»#«. Lines which are not »%t«DO»#« commands are passed to »ye«COMMAND.COM»#« to
execute as »cy«DOS commands»#« in Interactive mode. To display the lines,
use the command "»%t«/DISPLAY ON»#«". To return to normal Interactive
operation, use the command "»%t«/DISPLAY OFF»#«".
You can also force »%t«DO»#« to display a single line by starting it
with a greater-than sign ("»cy«>»#«").
:DISPLAY PARAMETERS
.pg wi full clr ye
DISPLAY CONTROL PARAMETERS
»+cy«.»cy«{parameter 1} {parameter 2} .. {parameter 20}
/cw
Display control parameters control the format of the lines
printed on the screen during the execution of a display
command.
Up to »ye«20 control parameters»#« can be placed on each control
line. (Up to »ye«19»#« parameters can also be included on the
»%t«/DISPLAY»#« command line.)
The line must start with a period ("»+ye«.»#«") in column »ye«1»#«. Values
such as »wh«speed»#«, »wh«color»#«, etc. remain in effect until they are
explicitly changed by another display control parameter.
This is true even across or executed scripts (see the
»bo«ExecScript»#« command).
.pg clr
Display Control Parameters can also be placed on the »wh«display
line»#«. These are contained between the characters "»wh«»»»#«" (ASCII 175)
and "»wh«~174»#«" ASCII 174.
.pg
These characters appear as small arrows. They are entered on
the keyboard by entering »wh«174»#« and »wh«175»#« on the numeric keypad while
holding down the »bo«<Alt>»#« key. When you release the »bo«<Alt>»#« character,
the symbol appears.
.pg
If you are using the built-in »%t«DO»wh« editor»#« by entering the "»cy«/R»#«" or
"»cy«/E»#«" switch on the »wh«command line»#«, you may generate the characters
by pressing the »bo«<F1>»#« key. »%t«DO»#« will generate both characters and
position the cursor to begin entering the display paramaters.
Here's a display line with imbedded control characters:
| This »bo«word»#« is highlighted.
.pg
You can see that imbedded characters have the same effect
those entered on their own line.
»bl«NOTE»gy«: »#«Because variables are evaluated before control codes,
embeded control codes can be assigned to »ye«variables»#« to
make life easier.
|/set %t "c 14 1"
|This line will display colors in the »%t«variable»#«.
.pg clr ye
WI[NDOW] [{X Y X Y}|{FULL}]
»#«
The window command creates a "»ye«window»#«" on the screen.
After the window is set, commands are relative to that
window. When setting a window smaller than the »cy«FULL»#«
window, the next parameters must contain the »cy«X»#« and »cy«Y»#«
coordinates of the »ye«upper-left corner»#«, followed by the
coordinates of the »ye«lower-right corner»#«. To reset the
window to the full window, follow the »bo«WINDOW»#« parameter
with the keyword »cy«FULL»#«.
»cy«WINDOW 10 10 50 17»gray« :»wh« creates a window from row 10,
column 10 to row 17, column 50.
»cy«WINDOW FULL»gray« :»wh« resets the window to the full »%t«DO»wh« screen.
.pg clr ye
SP[EED] {millisecond delay}
»#«
Set the speed at which lines are displayed. The default
(FAST) is full speed. Enter a number representing
millisecond delay between characters following the
SPEED parameter.
.pa 1
Here's a line with a built-in speed parameter.
Press »bo«<Enter>»#« to see its effect. . .
| »sp 100«Sets a »wh«100»#« millisecond delay between characters.»FAST«
.pg clr std ye
FAST
»#«
Sets the display to full speed.
.pg clr ye
CLICK
»# type go 10 3«Sounds a brief click when each character is displayed.
»go 10 4«(Simulates typing).
.pg clr std ye
QU[IET]
»#«
»sp 75«Supresses the audible click when each character is
displayed.
.pg clr std ye
C {foreground} {background}
»#«
Sets the screen colors for the foreground and
background display in the currently active window.
.pg clr
The color numbers are integers:
.wi 10 7 79 25
»c 0 7«Black »#«= 0
»c 1 0«Blue »#«= 1
»c 2 0«Green »#«= 2
»c 3 0«Cyan »#«= 3
»c 4 0«Red »#«= 4
»c 5 0«Magenta »#«= 5
»c 6 0«Brown »#«= 6
»c 7 0«LightGray »#«= 7
»c 8 0«DarkGray »#«= 8
»c 9 0«LightBlue »#«= 9
»c 10 0«LightGreen »#«= 10
»c 11 0«LightCyan »#«= 11
»c 12 0«LightRed »#«= 12
»c 13 0«LightMagenta »#«= 13
»c 14 0«Yellow »#«= 14
»c 15 0«White »#«= 15
.pg clr
You can also use »wh«color abbreviations»#« to set foreground
colors, these are:
»wh«bl»gy« = »bl«blue
»wh«gr»gy« = »gr«green
»wh«cy»gy« = »cy«cyan
»wh«re»gy« = »re«red
»wh«ma»gy« = »ma«magenta
»wh«ye»gy« = »ye«yellow
»wh«wh»gy« = »wh«bright white
»wh«gy»gy« = »gy«gray »#«(»cy«"»wh«gray»cy«" is also acceptable»#«)
»wh«# »gray« = »#«clear to light gray (normal, will also reset
background to »wh«black»#«)
.pg
Placing a "»+wh«+»#«" in front of the »cy«color abbreviation»#« or "»cy«C»#«" will
cause the color to »+#«blink»#«.
.pg clr
The actual colors displayed may vary on your monitor.
These settings produce various shades of gray,
highlighting, underlining, etc. on monochrome monitors.
The effects may vary.
.pg wi 1 5 79 25 clr ye
CLR
»#«
Clears the active window to the »wh«background color»#«
defined by the »ye«COLOR»#« parameter (default is »wh«black»#«).
.pg clr wh
/MATH Num1 0
/REPEAT
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
/INC Num1
/UNTIL %Num1 EQ 10
»#«
Here's a screen full. Now we'll use the clr command to clear the
active window (which is below the line).
|.clr
.pg clr ye
BELL
»#«
Sounds the computer's bell.
|.bell
.pg clr ye
PAGE (PG)
»#«
Pauses the execution of the script. It is the
equivalent of the »%t«/PAGE»#« command. Displays the
»%t«/PAGEPROMPT»#« and waits for the user to press any key.
Pressing »bo«<Esc>»#« will terminate the display.
.pg clr ye
GO[TO] {column} {row}
»#«
Positions the next display at the row and column
indicated. »cy«NOTE»gray«:»#« row and column are relative to the
current active window.
.pg clr
|.go 5 5
Position 5,5
|.go 7 10
Position 7,10
|.go 40 15
Position 40,15
.pg clr ye
PA[USE] {seconds}
»#«
Pauses the script execution for the number of »wh«seconds»#«
indicated. Processing continues immediately if the user
presses any key except »bo«<Esc>»#«. If the user presses »bo«<Esc>»#«
the »%t«/PAGEPROMPT»#« is displayed. The »ye«PAUSE»#« parameter then
reacts the same as the »ye«PAGE»#« parameter.
.pg clr ye
RE[SET]
»#«
Resets the page line count to zero. A »%t«/PAGEPROMPT»#« is
automatically displayed when the line count reaches the
length of the active window less one line.
»cy«NOTE»gray«:»#« The »%t«/PAGE»#« command or »ye«PAGE»#« parameter also resets
the line count.
.pg clr
There are also several "»wh«shortcut»#«" display parameters. These
are abbreviations for the equivalent commands:
.pg
STD is the same as COLOR 7 0 QUIET FAST
(it resets the default »%t«DO»#« display parameters)»pg -24«
BO is the equivalent of »bo«COLOR 7 0»# pg -24«
UL is the equivalent of »ul«COLOR 1 0»# pg -24«
NORM resets the display to COLOR 7 0 (white on black)»pg -24«
TYPE »type«is the equivalent of SPEED 75 CLICK»std«
/ENDEXEC CLEAR